import request from '@/utils/request'

// 登录函数
/**
 * @description: 登录函数
 * @param {*} data { mobile,password}
 * @return {*} promise
 */
export function loginAPI(data) {
  return request({
    url: '/park/login',
    method: 'POST',
    data
  })
}

/**
 * 
 * @param {*} params{name:string,page:string,pageSize:string} 
 * @returns 
 */
export function getEnterPriseListAPI(params){
  return request({
    url:'/park/enterprise',
    method:'get',
    params
  })
}


/**
 * 
 * @param {*} id string
 * @returns 
 */
export function delEnterPriseAPI(id){
  return request({
    url:'`/park/enterprise/${id}`',
    method:'delete'
  })
}